
<?php
include ('config.php');
include ("checklogin.php");
    $login = $_SESSION['westlakeusername'];
?>



<html>
<head>
<title>西湖网络VPN</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
table {  font-family: "宋体"; font-size: 11pt; font-style: normal; font-weight: normal; color: #660066; text-decoration: none}
a {  font-family: "宋体"; font-size: 11pt; text-decoration: none; color: #000000}
a:hover {  font-family: "宋体"; font-size: 11pt; color: #FF3300; text-decoration: underline}
body {  font-family: "宋体"; font-size: 11pt}
td {  font-size: 11pt}
-->
</style>
</head>

<body bgcolor="#FFFFFF" leftmargin="20" marginwidth="20">
<div align="center"> </div>
<table width="100%" align="center" border="0">
	<tr height="40"></tr>
</table>


<?php
include_once ("menu.php");
?>

<div id="Layer1" style="position:absolute; width:165px; height:115px; z-index:1; left: 23px; top: 142px"> 
  <table width="94%" border="0" height="7%" align="left" bgcolor="#003366" cellspacing="1">
    <tr bgcolor="#ccddFF"> 
      <td width="22%" height="26" bgcolor="#ccddFF"> 
        <div align="center"><font color="#FF0000">菜单</font></div>
      </td>
    </tr>
    <tr bgcolor="#ccddFF"> 
      <td width="22%" height="26"> 
        <div align="center"><a href="useradmin.php">使用统计</a></div>
      </td>
    </tr>
    <tr bgcolor="#ccddFF"> 
      <td width="28%" height="26"> 
        <div align="center"><a href="change.html">修改资料</a></div>
      </td>
    </tr>
    <tr bgcolor="#ccddFF"> 
      <td width="28%" height="26"> 
        <div align="center"><a href="useradmin.php">帐户查询</a></div>
      </td>
    </tr>
    <tr bgcolor="#ccddFF"> 
      <td width="28%" height="26"> 
        <div align="center"><a href="useradmin.php?action=buy">购买服务</a></div>
      </td>
    </tr>
    <tr bgcolor="#ccddFF"> 
      <td width="28%" height="26"> 
        <div align="center"><a href="logout.php">退出登录</a></div>
      </td>
    </tr>
  </table>
</div>


<?php
include_once ("userReports.php");
echo '<div id="Layer3" style="position:absolute; width:600px; height:357px; z-index:3; left: 274px; top: 174px">';
echo '  <p><b>我的帐户</b></p>';
echo '  <p>';
echo '  <p>您现在是：免费用户（每天可以使用1个小时）</p>';
echo "  <p>本次使用时间还剩余：$userSessionTimeout</p>";
echo "  <p>帐号有效期：$userExpiration</p>";
echo '  <p></p>';
echo '  <p></p>';
echo '  <br>';
echo '  <p><b>我的流量</b></p>';
echo "  <p>今天累计使用时间：$userSumMaxDailySession</p>";
echo "  <p>本月累计使用时间：$userSumMaxMonthlySession</p>";
echo "  <p>历史累计使用时间：$userSumMaxAllSession</p>";
echo "  <p>今天累计使用流量：$userSumDailyUpload (Upload), $userSumDailyDownload (Download)</p>";
echo "  <p>本月累计使用流量：$userSumMonthlyUpload (Upload), $userSumMonthlyDownload (Download)</p>";
echo "  <p>历史累计使用流量：$userSumUpload (Upload), $userSumDownload (Download)</p>";
echo '  <p></p>';
echo '  <p></p>';
echo '  <br>';
echo '  <p><b>用户状态</b></p>';
echo "  <p>$userStatus</p>";
echo "  <p>上次登录时间：$userLastConnected</p>";
echo "  <p>上次登录时长：$userOnlineTime</p>";
echo "  <p>上次登录IP：$userMacAddress</p>";

echo " </div>";
?>

</body>
</html>


